﻿using Microsoft.EntityFrameworkCore;
using OnlineLearningSystem.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineLearningSystem.Repository
{
    public class AppDbContext : DbContext
    {

        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {

        }

        //数据库表
        public DbSet<User> Users { get; set; }
        public DbSet<Batch> Batchs { get; set; }
        public DbSet<Course> Courses { get; set; }
        public DbSet<LearningSituation> LearningSituations { get; set; }
        public DbSet<Test> Tests { get; set; }
        public DbSet<Topic> Topics { get; set; }
    }
}
